package cn.rdq.common.constant;

public class SysCurrentInfo {

    public static int online = 0;

    public static int viewsToday = 0;

    public static void incrOnline() {
        online += 1;
    }

    public static void descOnline() {
        if (online > 0) {
            online -= 1;
        }
    }

    public static int getOnline() {
        return online;
    }

    public static void incrViewsToday() {
        viewsToday += 1;
    }

    public static void resetViewsToday() {
        viewsToday = 0;
    }

    public static void resetOnline() {
        online = 0;
    }
}
